<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:r="http://ricchieri.com/facelets"
	xmlns:p="http://primefaces.org/ui">
	<h:head>
	</h:head>
	<h:body>
		<ui:composition >  
			<h:panelGrid columns="2">
				<h:outputLabel style="font-weight:bold" value="#{msg.charterNumber}"/>
				<h:outputLabel value="#{manageBean.charter.charterNumber}" />
				
	     		<h:outputLabel style="font-weight:bold" value="#{msg.charterType}" />
	     		<h:outputLabel value="#{manageBean.obtainDescription(manageBean.charter.charterType.description)}"/>
	     		
	     		<h:outputLabel style="font-weight:bold" value="#{msg.charterPatent}" />  
			    <h:outputLabel value="#{manageBean.charter.patent}" />
	     		
	     		<h:outputLabel style="font-weight:bold" value="#{msg.charterExpenseType}"/>
	     		<h:outputLabel value="#{manageBean.obtainDescription(manageBean.charterExpense.charterExpenseType.description)}"/>
	     		
	     		<h:outputLabel style="font-weight:bold"  value="#{msg.charterExpenseAmount}" />
	     		<h:outputLabel value="#{manageBean.charterExpense.amount}"/>
	     		
	     		<h:outputLabel style="font-weight:bold" value="#{msg.charterExpenseDate}" />
	     		<h:outputLabel value="#{manageBean.formatDate(manageBean.charterExpense.date)}" />
    		
	     		<h:outputLabel style="font-weight:bold" value="#{msg.charterExpenseDescription}" />
				<h:outputLabel value="#{manageBean.charterExpense.description}"/>
			</h:panelGrid>
			
			<h:form>
				<div style="padding-top:10px; text-align:right">
					<r:commandLinkCustom id="add" action="#{manageBean}" method="addCharterExpense" icon="icon-money" message="#{msg.addNewExpense}" style="font-size:14px" rendered="#{showAddCharterExpense}"/>
				</div>
			</h:form>
		</ui:composition>
	</h:body>
</html>
